﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Love.Awesome.TMX
{
    public class Group : MapChild
    {
        [XmlAttribute("id")]
        public int ID;

        [XmlAttribute("name")]
        public string Name;

        [XmlAttribute("class")]
        public string Class;

        [XmlAttribute("offsetx")]
        public int OffsetX;

        [XmlAttribute("offsety")]
        public int OffsetY;

        [XmlAttribute("parallaxx")]
        public int ParallaxX;

        [XmlAttribute("parallaxy")]
        public int ParallaxY;

        [XmlAttribute("opacity")]
        public float Opacity;

        [XmlAttribute("visible")]
        public BoolEnum Visible;

        [XmlAttribute("tintcolor")]
        public string TintColor;

        [XmlElement("properties")]
        public Properties Properties;

        [XmlElement("layer", typeof(Layer))]
        [XmlElement("objectgroup", typeof(ObjectGroup))]
        [XmlElement("imagelayer", typeof(ImageLayer))]
        [XmlElement("group", typeof(Group))]
        public List<MapChild> Layers;
    }
}
